package handler

import (
	"fmt"
	"travel/project/global"
	"travel/project/intdler/models"
)

func Add() {
	var user models.User

	user = models.User{
		Id:       user.Id,
		Mobile:   user.Mobile,
		Username: user.Username,
		Password: user.Password,
	}
	global.MysqlDB.Create(&user).Rollback()

	fmt.Println("添加成功")
}
